Norbert Preining: De-uglify GTk3 tabs of terminals
If you are puzzled by the indistinguishability of the active tab from inactive tabs in any of the GTK3 based terminal emulators (mate-terminal, gnome-terminal, terminator, ), you are not alone. I have been plagued by that for far too long, and finally found a working solution.
In the above screen shot you see the tabs in the upper part are hardly distinguishable, and in the lower part the active tab is clearly indicated with different colors. Searching for relevant search terms brings up a variety of suggestions, most of them not working. I finally found this one and adapted the code therein to fit my need. The solution is to edit
Here I didn t change the background color (commented above), but changed the styling of the tab title and added a frame. The above changes the tab layout for all GTk3 elements that use the notebook widget, if one wants to restrict it to a certain terminal one need to prefix each CSS selector with the correct terminal indicator, as shown in the original post.
Hope that helps.
In the above screen shot you see the tabs in the upper part are hardly distinguishable, and in the lower part the active tab is clearly indicated with different colors. Searching for relevant search terms brings up a variety of suggestions, most of them not working. I finally found this one and adapted the code therein to fit my need. The solution is to edit
~/.config/gtk-3.0/gtk.css
, and add the following at the end:
notebook tab /* background-color: #222; */ padding: 0.4em; border: 0; border-color: #444; border-style: solid; border-width: 1px; notebook tab:checked /* background-color: #000; */ background-image: none; border-color: #76C802; notebook tab:checked label color: #76C802; font-weight: 500; notebook tab button padding: 0; background-color: transparent; color: #ccc; notebook tab button:hover border: 0; background-image: none; border-color: #444; border-style: solid; border-width: 1px;